package main

import "fmt"

func main() {

	//数组元素反转
	var arr = [...]int{1, 3, 4, 6, 8, 4}
	var arrLen = len(arr)
	for i := 0; i < arrLen/2; i++ {
		var temp = arr[arrLen-1-i]
		arr[arrLen-1-i] = arr[i]
		arr[i] = temp
	}
	for _, v := range arr {
		fmt.Print(v)
	}

}
